package com.code.gen.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 *
 * </p>
 *
 * @author huang
 * @since 2023-02-08
 */
@Data
@ApiModel(value = "Blog对象", description = "")
public class Blog implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键")
      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("作者")
      private Integer userId;

      @ApiModelProperty("标题")
      private String title;

      @ApiModelProperty("类别")
      private Integer categoryId;

      @ApiModelProperty("封面")
      private String img;

      @ApiModelProperty("内容")
      private String content;

      @ApiModelProperty("是否置顶")
      private Boolean isTop;

      @ApiModelProperty("当前时间")
      private LocalDateTime createTime;

      @ApiModelProperty("修改时间")
      private LocalDateTime updateTime;

      @ApiModelProperty("浏览量")
      private Integer viewCounts;


}
